// 添加银行卡的post接口，提交参数为 持卡人realName+卡号number
var addBankCard = "/addBankCard";
$(document).ready(function(){
  $("button").click(function(){
    var username = $(".username").val();
    var cardId = $(".cardId").val();
    if (username!="" && cardId!="") {
      $.post(addBankCard,{
        realName:username,
        number:cardId
      },function(res){
        alert(res.resultInfo);
        if(res.serviceResult){history.back();}
      });
    }
  });
});
